<?php

use Phinx\Migration\AbstractMigration;

class AddColumnUserCertIdInTaskTable extends AbstractMigration
{
    public function up()
    {
        $this->table("task")
            ->addColumn("user_cert_id", "integer", [
                "limit" => 10,
                'signed' => false,
                'default' => 0,
                'null' => false,
                'comment' => '用户资格证id',
            ])
            ->save();
    }

    public function down()
    {
        $this->table("task")
            ->removeColumn("user_cert_id")
            ->save();
    }
}
